if __name__ == "__main__":

    from metric import MetricConnection, METRIC_SETTINGS
    from datetime import datetime, timedelta

    metric_conn = MetricConnection(METRIC_SETTINGS)

    end_time = datetime.now()
    start_time = end_time - timedelta(minutes=5)

    data = metric_conn.get_query_data(start_time, end_time)